<!-- 图片 -->
<template>
    <div>
        <img :src="img" alt="">
    </div>
</template>

<script>
import { ref, reactive, getCurrentInstance } from 'vue'
export default {
    setup() {
        const { proxy } = getCurrentInstance();
        const params = proxy.getHashParam('appinfoImg')
        const imgMap = {
            'wanfajieshao': require('../../assets/appinfoImg/wanfajieshao.png'),
            'changjianwenti': require('../../assets/appinfoImg/changjianwenti.png'),
            'moshishuoming': require('../../assets/appinfoImg/moshishuoming.jpeg')
        }

        const img = imgMap[params];
        console.log(img)

        return {
            imgMap,
            img,
        }
    }
}

</script>
<style scoped>
img{
    width: 100%;
    display: inline-block;
}
</style>